import { configDatas, tableDatas } from './data2'
// import { configDatas, tableDatas } from './data1'
import userInfo from './userInfo'
export default [
    //登录接口
    {
        url: '/Login/CheckAccount',
        method: 'post',
        response: (args) => {
            console.log('args', args)
            const { Account, Pwd } = args.body
            if (Account === 'admin' && Pwd === 'admin') {
                return {
                    "msg": "成功",
                    "result": true,
                    "Account": "admin",
                    "Name": "管理员",
                    "token": "6E8BF76C6BA5B0D8",
                    "dev_Account": userInfo,
                    "ValidityDays": 557,
                    "ValidityDate": "2026-11-10",
                    "IsChangePwd": null,
                    "IsUpLoadAvatar": 0,
                    "AvatarURL": null
                }
            }
            else {
                return { result: false, msg: 'error' }
            }
        }
    },
    {
        url: '/APSAPI/GetConfig',
        method: 'post',
        response: () => {
            return configDatas
        }
    },
    {
        url: '/APSAPI/APSData',
        method: 'post',
        response: () => {
            return tableDatas
        }
    }
]